package pub.developers.forum.api.service;

import pub.developers.forum.api.model.ResultModel;
import pub.developers.forum.api.request.file.FileUploadImgRequest;

import java.text.ParseException;


public interface FileApiService {

    ResultModel<String> uploadImg(FileUploadImgRequest request);

    //删除七牛云上指定的照片
    ResultModel deleteImg(String avatarName);


    //Oss
    ResultModel<String> uploadImgOss(FileUploadImgRequest request) throws ParseException;

    //删除Oss上指定的照片
    ResultModel deleteImgOss(String avatarName);

}
